Skip to content

Conversation

@alan-agius4
Copy link
Collaborator

This commit ensures that redirects correctly account for the X-Forwarded-Prefix header and APP_BASE_HREF, preventing incorrect redirect loops or invalid URLs when running behind a proxy or with a base href.

Closes #31902

… redirects

This commit ensures that redirects correctly account for the X-Forwarded-Prefix header and APP_BASE_HREF, preventing incorrect redirect loops or invalid URLs when running behind a proxy or with a base href.

Closes angular#31902
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Nov 21, 2025
@alan-agius4 alan-agius4 requested a review from atscott November 21, 2025 11:36
@alan-agius4 alan-agius4 marked this pull request as ready for review November 21, 2025 11:36
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 24, 2025
@alan-agius4 alan-agius4 merged commit 4dac5f2 into angular:main Nov 24, 2025
38 of 39 checks passed
@alan-agius4 alan-agius4 deleted the app-prefix branch November 24, 2025 11:57
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/ssr target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSR redirect loop with custom base href (>=20.3.7)

2 participants